//
//  SetCountdownTitleCell.m
//  HaoHint
//
//  Created by winter on 16/5/24.
//  Copyright © 2016年 wd. All rights reserved.
//

#import "SetCountdownTitleCell.h"

@interface SetCountdownTitleCell ()
@property (weak, nonatomic) IBOutlet UITextField *textField;
@end
@implementation SetCountdownTitleCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setTitleModel:(SetCountdownTitleCellModel *)titleModel
{
    _titleModel = titleModel;
    
    self.textField.placeholder = titleModel.placerholder;
    self.textField.text = titleModel.cellTitle;
}
- (IBAction)editingDidEnd:(UITextField *)sender
{
    if (self.cellBlock) {
        self.cellBlock(sender.text);
    }
    self.titleModel.cellTitle = sender.text;
}

@end


@implementation SetCountdownTitleCellModel 

@end